package com.cdtye.itps.cms.controller.line;

import com.cdtye.common.webcore.web.AjaxJson;
import com.cdtye.itps.cms.dao.line.entity.JcSecline;
import com.cdtye.itps.cms.dao.line.vo.JcSeclineVo;
import com.cdtye.itps.cms.service.line.JcSeclineService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * 线路 前端控制器
 * @author wzw
 * @date 2021-07-08
 */
@Api(tags="线路接口")
@RestController
@RequestMapping("/secline")
public class JcSeclineController {

    @Autowired
    private JcSeclineService modelService;

    @ApiOperation("线路列表查询")
    @GetMapping("/getList")
    public AjaxJson<List<JcSecline>> getList(JcSeclineVo vo){
        List<JcSecline> result = modelService.getSeclineList(vo);
        return AjaxJson.success(result);
    }
}
